//
//  MenuView.h
//  Menu
//
//  Created by ZF on 16/12/21.
//  Copyright © 2016年 ZhuFeng. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger ,MenuStyle) {
    MenuDefaultStyle,
    MenuBlackStyle
};

//此协议用来添加点击cell后的操作
@protocol AddMenuOperation <NSObject>
@optional

- (void)selectCellImplementAtIndexRow:(NSInteger)rowNumber;

@end


@interface MenuView : UIView

@property (strong, nonatomic)  NSMutableArray<NSString *> *data;
@property (nonatomic) BOOL ifHide;//默认为YES
@property (weak, nonatomic) id <AddMenuOperation> delegate;

- (instancetype)initWithSetCellLabelTextWithArray:(NSArray<NSString *> *)array menuPoint:(CGPoint)point withMenuStyle:(MenuStyle)style;

- (void)repaintMenuViewAddData:(NSArray<NSString *> *)data;

- (void)disappear;//隐藏
- (void)display;//显示
@end
